Feature exception handling

Added pop-ups when exception occurs when using query.js