After the filing of a bankruptcy petition, the debtor needs protection from the collection efforts of its creditors. Therefore, the bankruptcy law provides that the filing of either a voluntary or involuntary petition operates as an automatic stay which prevents creditors from taking action against the debtor. This is similar to an injunction against the creditors of the debtor. The automatic stay ends when the bankruptcy case is closed or dismissed or when the debtor is granted a discharge. Anyone who willfully violates the stay in the case of an individual debtor can be liable for actual damages caused by the violation and sometimes liable for punitive damages.