Fixed several more bugs with FmConnection, added error handling.