Always end composition, even on error

- Always call endComposition from onError.
- Check if error has been called, and if not call compositionComplete
callbacks.
- Call cleanup from endComposition.
- Removed random debugger.