Always end composition, even on error

More stuff to make sure failed composition doesn't crash the application

- Always call endComposition from onError.
- Check if error has been called, and if not call compositionComplete
callbacks.
- Call cleanup from endComposition.
- Removed random debugger.