Use more proper exceptions in ConnectController actions + some phpdoc cleanup