Sending status code in case of abortion.
Code cleanup