Fix reporting Parser Exceptions for PHP 5.3
Fix error reporting and closing connection
Initial concept for collecting a list of action response events