Coal company leaving bankruptcy, mines go to creditors