Added exception handling when mongodb is not running