Removed some using statements, checked the ThreadAbortState