Finishing event logic

- Added __destruct method to Scurl to prevent static var pollution
- Added error handling event logic
- Added unit tests for additional logic