Added more verbose error message if mongodb fails on connecting.
Fixed segmentation fault error if calling postmap command.