Fixed logging issue.
Exit. [Fix this later to exit gracefully].