refs #4179 throw errors if invalid params given, handle close event