cleaned up mongo connection and error events