Added exceptions for client
Corrected log levels in main