Added condition for terminating console. Fixed  #517
Adds mylyn dependencies. Fixes #507