prevent send headers after they have already been sent (by the ftp lib for example)