Adding error handler

Added an error handler for joining tournaments.