Fixed a bug with the exit command.
Improved the reliablity of the Amazon url service.
Fixed a potential memory leak in the AmazonUrlService.

Signed-off-by: Amrykid <amrykid@gmail.com>