Cleaned abort method and imported HttpException

Thanks @GrahamCampbell  !